home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Utilities / ClassAction / CA_3.6_MUI / Install-English < prev    next >
Encoding:
Text File  |  1998-04-01  |  5.4 KB  |  188 lines

  1. ; $VER: ClassAction V3.6 Installer
  2. ; Script to install Release 3.6 of ClassAction
  3. (complete 0)
  4.  
  5. (set #Abort
  6. (cat "NO"
  7. ))
  8.  
  9. (set #Overwrite
  10. (cat "YES"
  11. ))
  12.  
  13. (set #conf
  14. (cat "\n\nDo you want to install standard config files\n"
  15.      "on your system , if this is your first installation\n"
  16.      "I recommand you to install them."
  17. ))
  18.  
  19. (set #conf-help
  20. (cat "\n\nThe installer wants to know if it is needed to\n"
  21.      "install standard config files.\n\n"
  22.      "If you have a config file already installed\n"
  23.      "just select the NO button\n"
  24.      "to keep your own config."
  25. ))
  26.  
  27.  
  28. ;********************************************************************
  29.  
  30. (set #warn-kickstart-text
  31. (cat    "\n   ClassAction 3.6 is MailWare !!\n\n"
  32.         "     You can register for FREE on the web\n\n"
  33.     "     This Version use the same catalogs as the 3.5\n"
  34.     "     Thus available catalogs for the 3.5 on the Net\n"
  35.     "     are still good for this version (3.6)\n\n"
  36.     "     Try the key +,-,*,/ and Enter on the keypad\n"
  37.     "     DON'T FORGET TO READ THE DOC ABOUT NEW TOOLTYPES"
  38.         "\n   ClassAction 3.6 needs MUI 3.0+\n\n"
  39.  
  40. ))
  41.  
  42. ;*********************************************************************
  43.  
  44. (set #CAS-query-text
  45. (cat "Where do you want\nto install CAStart"
  46. ))
  47.  
  48. (set #CAS-query-help
  49. (cat "\n\nYou have now to choose a directory where\n"
  50.         "you want to install CAStart\n\n"
  51.         "Just click on it with your mouse and"
  52.         " select proceed\n\n"
  53.     "CAStart is a tiny executable you can put\n"
  54.     "as default projet for your icons"
  55. ))
  56.  
  57. ;*********************************************************************
  58.  
  59. (set #DOC-query-text
  60. (cat "Where do you want\nto install documentation"
  61. ))
  62.  
  63. (set #DOC-query-help
  64. (cat "\n\nYou have now to choose a directory where\n"
  65.         "you want to install the guide file\n\n"
  66.         "Just click on it with your mouse and"
  67.         " select proceed"
  68. ))
  69.  
  70. ;****************************************
  71.  
  72. (set #CA-query-text
  73. (cat "Where do you want\nto install ClassAction\nmain program"
  74. ))
  75.  
  76. (set #CA-query-help
  77. (cat "\n\nYou have now to choose a directory where\n"
  78.         "you want to install the main program file\n\n"
  79.         "Just click on it with your mouse and"
  80.         " select proceed"
  81. ))
  82.  
  83. ;****************************************
  84.  
  85. (set #CAP-query-text
  86. (cat "Where do you want\nto install ClassActionPrefs"
  87. ))
  88.  
  89. (set #CAP-query-help
  90. (cat "\n\nYou have now to choose a directory where\n"
  91.         "you want to install the Prefs program file\n\n"
  92.         "Just click on it with your mouse and"
  93.         " select proceed\n"
  94.         "you can select SYS:Prefs if you don't know where to\n"
  95.         " install it..."
  96. ))
  97.  
  98.  
  99. (set #ver-help
  100. (cat "\n\nIf you Update an older version\n"
  101.         "the icon file of ClassAction\n\n"
  102.         "will not be copied, to avoid erasing\n"
  103.         "your tooltypes setup\n"
  104. ))
  105.  
  106. ;********************************************************************
  107.  
  108. (set #goodbye
  109. (cat "\nClassAction is now installed."
  110. ))
  111.  
  112. ;********************************************************************
  113.  
  114. (set ver (/ (getversion) 65536) )
  115.         (set warning (#warn-kickstart-text ver) ) (message warning)
  116.  
  117.  
  118. (set cpu (askchoice (prompt "What CPU version do you want to install") (choices "68000" "68020 or higher") (help "Chosse your processor")))
  119.  
  120.  
  121. (if (= 0 cpu)
  122. (
  123. (rename "ClassAction.00" "ClassAction")
  124. (rename "ClassActionPrefs.00" "ClassActionPrefs")
  125. ))
  126.  
  127. (if (= 1 cpu)
  128. (
  129. (rename "ClassAction.20" "ClassAction")
  130. (rename "ClassActionPrefs.20" "ClassActionPrefs")
  131. ))
  132.  
  133.                 (set thedir (askdir (prompt #CA-query-text) (help #CA-query-help) (default "SYS:WbStartup")))
  134.                 (makeassign "CAHOME" thedir)
  135.  
  136.  
  137.  
  138. (if(exists("CAHOME:ClassAction"))
  139.                 (
  140.                 (message "\nYou are updating an old version of ClassAction\n\nDon't forget to read the guide\nabout the new tooltypes defined\nAnd ALL new features of the 3.6 version.")
  141.                 (copyfiles (source "ClassAction") (dest thedir))
  142.                 (run "utt CAHOME:ClassAction ClassAction CAHOME:ClassAction")
  143.                 )
  144.                 (copyfiles (source "ClassAction") (dest thedir) (infos))
  145.                 )
  146.  
  147. (complete 25)
  148.  
  149.  
  150.                 (set thedir (askdir (prompt #CAP-query-text) (help #CAP-query-help) (default "SYS:Prefs")))
  151.                 (copyfiles (source "ClassActionPrefs") (dest thedir) (infos) )
  152. (complete 50)
  153.  
  154.                 (set thedir (askdir (prompt #DOC-query-text) (help #DOC-query-help) (default "HELP:")))
  155.                 (copyfiles (source "English/ClassAction.guide") (dest thedir) (infos) )
  156. (complete 75)
  157.  
  158.                 (set thedir (askdir (prompt #CAS-query-text) (help #CAS-query-help) (default "C:")))
  159.                 (copyfiles (source "CAStart") (dest thedir) (infos) )
  160.  
  161. (complete 85)
  162.  
  163. (makedir ("ENVARC:ClassAction"))
  164.  
  165.  
  166. (if(exists("ENVARC:ClassAction.prefs")) (
  167.         (copyfiles (source "ENVARC:ClassAction.prefs") (dest "ENVARC:ClassAction"))
  168.         (delete ("ENVARC:ClassAction.prefs"))
  169.         ))
  170.  
  171. (if(exists("ENVARC:ClassAction_Gen.prefs")) (
  172.         (copyfiles (source "ENVARC:ClassAction_Gen.prefs") (dest "ENVARC:ClassAction"))
  173.         (delete ("ENVARC:ClassAction_Gen.prefs"))
  174.         ))
  175.  
  176.  
  177. (if(askbool (prompt #conf) (help #conf-help) ) (
  178. (copyfiles (source "English/ClassAction.prefs") (dest "ENVARC:ClassAction"))
  179. (copyfiles (source "English/ClassAction_Gen.prefs") (dest "ENVARC:ClassAction"))
  180. (copyfiles (source "English/ClassAction_Dir.prefs") (dest "ENVARC:ClassAction"))
  181. ))
  182.  
  183. (complete 100)
  184.  
  185. (message #goodbye)
  186. (exit (quiet))
  187.  
  188.